package org.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="cloud-study-code",
        fallback = CodeFeignClientFallBack.class,path = "/code")
public interface CodeFeignClient {

    @RequestMapping("/validate/{email}/{code}")
    int validate(@PathVariable String email, @PathVariable String code);

}
